// 品牌管理 相关请求函数
/* DELETE /admin/product/baseTrademark/remove/{id}
删除BaseTrademark

POST /admin/product/baseTrademark/save
新增BaseTrademark

PUT /admin/product/baseTrademark/update
修改BaseTrademark

GET /admin/product/baseTrademark/{page}/{limit}
分页列表 */

import request from '@/utils/request'
export default {
  //删除BaseTrademark
  remove(id) {
    return request({
      url: `/admin/product/baseTrademark/remove/${id}`,
      method: "delete"
    })
  },
  //新增BaseTrademark
  //修改BaseTrademark
  addOrUpdata(trademark) {
    if (trademark.id) {
      return request({
        url: `/admin/product/baseTrademark/update`,
        method: "put",
        data: trademark
      })
    }else{
        return request({
            url:`/admin/product/baseTrademark/save`,
            method:"post",
            data:trademark
        })
    }
  },

  //查分页列表
  GetPagesInfo(page,limit){
      return request({
          url:`/admin/product/baseTrademark/${page}/${limit}`,
          method:"get"
      })
  },
  /* GET /admin/product/baseTrademark/getTrademarkList
  getTrademarkList */
  /* 获取Trademark列表 */
  getTrademarkList(){
    return request.get(`/admin/product/baseTrademark/getTrademarkList`)
  }
}
